{extend name="public:base"/}


{block name="title"}新增管理员{/block}
{block name="style"}{/block}

{block name="main"}

<section class="content">
    <div class="row">

        <div class="col-md-12">

            <div class="row">
                <div class="col-lg-12">
                    <div class="box">
                        <div class="box-header with-border">
                            <h3 class="box-title">编辑管理员</h3>
                        </div>
                        <form  id="pt_form" method="post">
                            <div class="box-body">

                                <div class="clearfix"></div>

                                <input type="hidden" name="id" value="<?=$model->id?>"/>
                                <div class="form-group required">
                                    <div class='col-sm-2 text-right'>
                                        <label class="control-label Validform_label" for="full_name">姓名</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="text" id="full_name" class="form-control" name="full_name" placeholder="姓名" datatype="*" value="<?=$model->full_name?>">
                                        <div class="help-block"></div>
                                    </div>
                                </div>


                                <div class="form-group required">
                                    <div class='col-sm-2 text-right'>
                                        <label class="control-label Validform_label" for="account">登录账号</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="text" id="account" class="form-control" name="account" placeholder="登录账号" datatype="*" value="<?=$model->account?>" disabled>
                                        <div class="help-block"></div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class='col-sm-2 text-right'>
                                        <label class="control-label Validform_label" for="old_password">原密码</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="password" id="old_password" class="form-control" name="old_password" placeholder="登录密码" datatype="*" ignore="ignore">
                                        <div class="help-block"></div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class='col-sm-2 text-right'>
                                        <label class="control-label Validform_label" for="password">新密码</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="password" id="password" class="form-control" name="password" placeholder="登录密码" datatype="*" ignore="ignore">
                                        <div class="help-block"></div>
                                    </div>
                                </div>


                                <div class="form-group">
                                    <div class='col-sm-2 text-right'>
                                        <label class="control-label Validform_label" for="repassword">确认密码</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="password" id="repassword" class="form-control" name="repassword" placeholder="确认密码" datatype="*" recheck="password" ignore="ignore">
                                        <div class="help-block"></div>
                                    </div>
                                </div>

                            </div>
                            <div class="box-footer text-center">
                                <button class="btn btn-primary" type="submit">保存</button>
                                <span class="btn btn-white" onclick="history.go(-1)">返回</span>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
{/block}

{block name="js"}
<script>

    var validate = validator('#pt_form',"<?=url('admin/index/systemIndex')?>");

</script>
{/block}